<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>

</head>
<body>
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="editModalLabel">新增系统消息</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id = "msgEdit">
                		<input type="hidden" name="id" id="edit_sysMessageId" value="${param.sysMessageId}" />
                        <fieldset class="plan-left-info-fieldset">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>标题</label>
                                    <div class="col-sm-10">
                                    <input type="text" maxlength="256" class="form-control" id="edit_title" name="title"
                                           placeholder="请输入标题" data-easyform="length:1 256;char-chinese;"
                                           data-message="请输入标题" require="true">
                                    </div>
                                </div >
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>编码</label>
                                    <div class="col-sm-10">
                                    <input type="text" maxlength="256" class="form-control" id="edit_code" name="code"
                                           placeholder="请输入编码(唯一)" data-easyform="length:1 256;char-chinese;"
                                           data-message="请输入系统消息编码" require="true">
                                    </div>
                                </div >
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">描述</label>
                                    <div class="col-sm-10">
                                    <input type="text" maxlength="256" class="form-control" id="edit_payload" name="payload"
                                           placeholder="请输入描述信息" data-easyform="length:1 256;char-chinese;"
                                           data-message="请输入描述信息">
                                    </div>
                                </div >
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><span class="required">*</span>跳转地址</label>
                                    <div class="col-sm-10">
                                    <input type="text" maxlength="256" class="form-control" id="edit_redirectUrl" name="redirectUrl"
                                           placeholder="请输入跳转地址" data-easyform="length:1 256;char-chinese;"
                                           data-message="请输入跳转地址" require="true">
                                    </div>
                                </div >
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">是否包含内容</label>
                                    <div class="col-sm-10">
	                                    <select name="contentIsEmpty" id="edit_contentIsEmpty" class="form-control">
											<option value="">---请选择---</option>
											<option value="0">否</option>
											<option value="1">是</option>
										</select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">内容</label>
                                    <div class="col-sm-10">
                                    <textarea class="form-control" id="edit_content" name="content"
                                              data-easyform="char-chinese;length:1 255;"
                                              data-easytip="position:top;"
                                              data-message="请输入内容"></textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">状态</label>
                                    <div class="col-sm-10">
	                                    <select name="state" id="edit_state" class="form-control">
											<option value="">---请选择---</option>
											<option value="0">新建</option>
											<option value="1">已发布</option>
											<option value="99">已删除</option>
										</select>
                                    </div>
                                </div>
                        </fieldset>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" >取消</button>
                <button type="button" class="btn btn-primary" id="saveSysmsg" onclick="saveSysmsg();">保存</button>
            </div>
        </div>
    </div>
</div>

</body>
</html>
